package com.kingdee.eas.basedata.master.cssp.app;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.lang.String;
import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.eas.common.EASBizException;
import com.kingdee.eas.basedata.master.cssp.SupplierPurchaseInfoInfo;
import com.kingdee.bos.dao.IObjectPK;
import java.util.Map;
import com.kingdee.eas.basedata.framework.DataBaseDCollection;
import com.kingdee.bos.metadata.entity.SelectorItemCollection;
import com.kingdee.eas.framework.CoreBaseCollection;
import java.util.Set;
import com.kingdee.eas.basedata.framework.app.DataBaseDControllerBean;
import java.util.HashSet;
import com.kingdee.eas.basedata.master.cssp.SupplierCompanyInfoInfo;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.eas.framework.CoreBaseInfo;
import com.kingdee.eas.framework.ObjectBaseCollection;
import com.kingdee.bos.util.BOSUuid;
import com.kingdee.eas.basedata.master.cssp.SupplierCollection;
import com.kingdee.eas.basedata.org.CtrlUnitInfo;
import java.util.List;
import com.kingdee.eas.framework.DataBaseCollection;
import com.kingdee.eas.basedata.master.cssp.SupplierInfo;



public abstract class AbstractSupplierControllerBean extends DataBaseDControllerBean implements SupplierController
{
    protected AbstractSupplierControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("37C67DFC");
    }

    public SupplierInfo getSupplierInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("c18a4245-0104-1000-e000-0010c0a81233"), new Object[]{ctx, pk});
            invokeServiceBefore(svcCtx);
            SupplierInfo retValue = (SupplierInfo)_getValue(ctx, pk);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, IObjectPK pk) throws BOSException, EASBizException
    {
        return super._getValue(ctx, pk);
    }

    public SupplierInfo getSupplierInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("c18a4245-0104-1000-e000-0011c0a81233"), new Object[]{ctx, pk, selector});
            invokeServiceBefore(svcCtx);
            SupplierInfo retValue = (SupplierInfo)_getValue(ctx, pk, selector);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
    {
        return super._getValue(ctx, pk, selector);
    }

    public SupplierInfo getSupplierInfo(Context ctx, String oql) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("c18a4245-0104-1000-e000-0012c0a81233"), new Object[]{ctx, oql});
            invokeServiceBefore(svcCtx);
            SupplierInfo retValue = (SupplierInfo)_getValue(ctx, oql);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, String oql) throws BOSException, EASBizException
    {
        return super._getValue(ctx, oql);
    }

    public SupplierCollection getSupplierCollection(Context ctx) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("c18a4245-0104-1000-e000-0013c0a81233"), new Object[]{ctx});
            invokeServiceBefore(svcCtx);
            SupplierCollection retValue = (SupplierCollection)_getCollection(ctx, svcCtx);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx) throws BOSException
    {
        return super._getCollection(ctx, svcCtx);
    }

    public SupplierCollection getSupplierCollection(Context ctx, EntityViewInfo view) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("c18a4245-0104-1000-e000-0014c0a81233"), new Object[]{ctx, view});
            invokeServiceBefore(svcCtx);
            SupplierCollection retValue = (SupplierCollection)_getCollection(ctx, svcCtx, view);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, EntityViewInfo view) throws BOSException
    {
        return super._getCollection(ctx, svcCtx, view);
    }

    public SupplierCollection getSupplierCollection(Context ctx, String oql) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("c18a4245-0104-1000-e000-0015c0a81233"), new Object[]{ctx, oql});
            invokeServiceBefore(svcCtx);
            SupplierCollection retValue = (SupplierCollection)_getCollection(ctx, svcCtx, oql);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, String oql) throws BOSException
    {
        return super._getCollection(ctx, svcCtx, oql);
    }

    public SupplierCompanyInfoInfo getCompanyInfo(Context ctx, IObjectPK supplierPK, IObjectPK companyPK) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("c18a4245-0104-1000-e000-011bc0a81233"), new Object[]{ctx, supplierPK, companyPK});
            invokeServiceBefore(svcCtx);
            SupplierCompanyInfoInfo retValue = (SupplierCompanyInfoInfo)_getCompanyInfo(ctx, supplierPK, companyPK);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract IObjectValue _getCompanyInfo(Context ctx, IObjectPK supplierPK, IObjectPK companyPK) throws BOSException, EASBizException;

    public SupplierPurchaseInfoInfo getPurChaseInfo(Context ctx, IObjectPK supplierPK, IObjectPK purchaseOrgPK) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("c18a4245-0104-1000-e000-011ec0a81233"), new Object[]{ctx, supplierPK, purchaseOrgPK});
            invokeServiceBefore(svcCtx);
            SupplierPurchaseInfoInfo retValue = (SupplierPurchaseInfoInfo)_getPurChaseInfo(ctx, supplierPK, purchaseOrgPK);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract IObjectValue _getPurChaseInfo(Context ctx, IObjectPK supplierPK, IObjectPK purchaseOrgPK) throws BOSException, EASBizException;

    public SupplierCompanyInfoInfo getCompanyInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("c18a4245-0104-1000-e000-03f5c0a81233"), new Object[]{ctx, pk});
            invokeServiceBefore(svcCtx);
            SupplierCompanyInfoInfo retValue = (SupplierCompanyInfoInfo)_getCompanyInfo(ctx, pk);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract IObjectValue _getCompanyInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException;

    public SupplierCompanyInfoInfo getCompanyInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("c18a4245-0104-1000-e000-03f8c0a81233"), new Object[]{ctx, pk, selector});
            invokeServiceBefore(svcCtx);
            SupplierCompanyInfoInfo retValue = (SupplierCompanyInfoInfo)_getCompanyInfo(ctx, pk, selector);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract IObjectValue _getCompanyInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException;

    public SupplierCompanyInfoInfo getCompanyInfo(Context ctx, IObjectPK supplierPK, IObjectPK companyOrgPk, SelectorItemCollection selector) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("c18a4245-0104-1000-e000-03fdc0a81233"), new Object[]{ctx, supplierPK, companyOrgPk, selector});
            invokeServiceBefore(svcCtx);
            SupplierCompanyInfoInfo retValue = (SupplierCompanyInfoInfo)_getCompanyInfo(ctx, supplierPK, companyOrgPk, selector);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract IObjectValue _getCompanyInfo(Context ctx, IObjectPK supplierPK, IObjectPK companyOrgPk, SelectorItemCollection selector) throws BOSException, EASBizException;

    public SupplierCompanyInfoInfo getCompanyInfo(Context ctx, String supplierNumber, String companyOrgNumber) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("c18a4245-0104-1000-e000-0400c0a81233"), new Object[]{ctx, supplierNumber, companyOrgNumber});
            invokeServiceBefore(svcCtx);
            SupplierCompanyInfoInfo retValue = (SupplierCompanyInfoInfo)_getCompanyInfo(ctx, supplierNumber, companyOrgNumber);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract IObjectValue _getCompanyInfo(Context ctx, String supplierNumber, String companyOrgNumber) throws BOSException, EASBizException;

    public SupplierPurchaseInfoInfo getPurChaseInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("c18a4245-0104-1000-e000-042ac0a81233"), new Object[]{ctx, pk});
            invokeServiceBefore(svcCtx);
            SupplierPurchaseInfoInfo retValue = (SupplierPurchaseInfoInfo)_getPurChaseInfo(ctx, pk);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract IObjectValue _getPurChaseInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException;

    public SupplierPurchaseInfoInfo getPurChaseInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("c18a4245-0104-1000-e000-042dc0a81233"), new Object[]{ctx, pk, selector});
            invokeServiceBefore(svcCtx);
            SupplierPurchaseInfoInfo retValue = (SupplierPurchaseInfoInfo)_getPurChaseInfo(ctx, pk, selector);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract IObjectValue _getPurChaseInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException;

    public SupplierPurchaseInfoInfo getPurChaseInfo(Context ctx, IObjectPK supplierPK, IObjectPK purchaseOrgPk, SelectorItemCollection selector) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("c18a4245-0104-1000-e000-0430c0a81233"), new Object[]{ctx, supplierPK, purchaseOrgPk, selector});
            invokeServiceBefore(svcCtx);
            SupplierPurchaseInfoInfo retValue = (SupplierPurchaseInfoInfo)_getPurChaseInfo(ctx, supplierPK, purchaseOrgPk, selector);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract IObjectValue _getPurChaseInfo(Context ctx, IObjectPK supplierPK, IObjectPK purchaseOrgPk, SelectorItemCollection selector) throws BOSException, EASBizException;

    public SupplierPurchaseInfoInfo getPurChaseInfo(Context ctx, String supplierNumber, String purchaseOrgNumber) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("c18a4245-0104-1000-e000-0433c0a81233"), new Object[]{ctx, supplierNumber, purchaseOrgNumber});
            invokeServiceBefore(svcCtx);
            SupplierPurchaseInfoInfo retValue = (SupplierPurchaseInfoInfo)_getPurChaseInfo(ctx, supplierNumber, purchaseOrgNumber);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract IObjectValue _getPurChaseInfo(Context ctx, String supplierNumber, String purchaseOrgNumber) throws BOSException, EASBizException;

    public void approve(Context ctx, IObjectPK supplierPK) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("e4b45691-0104-1000-e000-01d1c0a81233"), new Object[]{ctx, supplierPK});
            invokeServiceBefore(svcCtx);
            _approve(ctx, supplierPK);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract void _approve(Context ctx, IObjectPK supplierPK) throws BOSException, EASBizException;

    public Map approve(Context ctx, IObjectPK[] pks) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("40d2f344-0108-1000-e000-0001c0a81221"), new Object[]{ctx, pks});
            invokeServiceBefore(svcCtx);
            Map retValue = (Map)_approve(ctx, pks);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract Map _approve(Context ctx, IObjectPK[] pks) throws BOSException, EASBizException;

    public void unApprove(Context ctx, IObjectPK supplierPK, boolean isUnApprove) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("e4b45691-0104-1000-e000-01d6c0a81233"), new Object[]{ctx, supplierPK, new Boolean(isUnApprove)});
            invokeServiceBefore(svcCtx);
            _unApprove(ctx, supplierPK, isUnApprove);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract void _unApprove(Context ctx, IObjectPK supplierPK, boolean isUnApprove) throws BOSException, EASBizException;

    public Map unApprove(Context ctx, IObjectPK[] pks) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("59e4089d-010e-1000-e000-0005c0a812d9"), new Object[]{ctx, pks});
            invokeServiceBefore(svcCtx);
            Map retValue = (Map)_unApprove(ctx, pks);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract Map _unApprove(Context ctx, IObjectPK[] pks) throws BOSException, EASBizException;

    public void freezed(Context ctx, IObjectPK supplierPK, boolean forceFreezed) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("e9f0b48d-0104-1000-e000-0006c0a81233"), new Object[]{ctx, supplierPK, new Boolean(forceFreezed)});
            invokeServiceBefore(svcCtx);
            _freezed(ctx, supplierPK, forceFreezed);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract void _freezed(Context ctx, IObjectPK supplierPK, boolean forceFreezed) throws BOSException, EASBizException;

    public void unFreezed(Context ctx, IObjectPK supplierPK, boolean forceUnFreezed) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("e9f0b48d-0104-1000-e000-0008c0a81233"), new Object[]{ctx, supplierPK, new Boolean(forceUnFreezed)});
            invokeServiceBefore(svcCtx);
            _unFreezed(ctx, supplierPK, forceUnFreezed);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract void _unFreezed(Context ctx, IObjectPK supplierPK, boolean forceUnFreezed) throws BOSException, EASBizException;

    public boolean isExistOtherInfo(Context ctx, IObjectPK supplierPK) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("eb31adf1-0104-1000-e000-0039c0a81233"), new Object[]{ctx, supplierPK});
            invokeServiceBefore(svcCtx);
            boolean retValue = (boolean)_isExistOtherInfo(ctx, supplierPK);
            svcCtx.setMethodReturnValue(new Boolean(retValue));
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract boolean _isExistOtherInfo(Context ctx, IObjectPK supplierPK) throws BOSException, EASBizException;

    public void updateCheck(Context ctx, IObjectPK pk, IObjectValue value) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("1c693679-0108-1000-e000-0035c0a81221"), new Object[]{ctx, pk, value});
            invokeServiceBefore(svcCtx);
            _updateCheck(ctx, pk, value);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract void _updateCheck(Context ctx, IObjectPK pk, IObjectValue value) throws BOSException, EASBizException;

    public boolean isExistSupplierByInter(Context ctx, String orgId) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("43136ce4-0109-1000-e000-0003c0a8121c"), new Object[]{ctx, orgId});
            invokeServiceBefore(svcCtx);
            boolean retValue = (boolean)_isExistSupplierByInter(ctx, orgId);
            svcCtx.setMethodReturnValue(new Boolean(retValue));
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract boolean _isExistSupplierByInter(Context ctx, String orgId) throws BOSException, EASBizException;

    public SupplierCollection getSupplierCollectionByInter(Context ctx, String orgId) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("43136ce4-0109-1000-e000-0005c0a8121c"), new Object[]{ctx, orgId});
            invokeServiceBefore(svcCtx);
            SupplierCollection retValue = (SupplierCollection)_getSupplierCollectionByInter(ctx, orgId);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract SupplierCollection _getSupplierCollectionByInter(Context ctx, String orgId) throws BOSException, EASBizException;

    public boolean isHasDeal(Context ctx, IObjectPK pk) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("ae90639e-0109-1000-e000-0004c0a8121c"), new Object[]{ctx, pk});
            invokeServiceBefore(svcCtx);
            boolean retValue = (boolean)_isHasDeal(ctx, pk);
            svcCtx.setMethodReturnValue(new Boolean(retValue));
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract boolean _isHasDeal(Context ctx, IObjectPK pk) throws BOSException, EASBizException;

    public boolean isExistSupplierByInter(Context ctx, String interOrgId, String comOrgId) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("3add7a3e-010b-1000-e000-0002c0a8121c"), new Object[]{ctx, interOrgId, comOrgId});
            invokeServiceBefore(svcCtx);
            boolean retValue = (boolean)_isExistSupplierByInter(ctx, interOrgId, comOrgId);
            svcCtx.setMethodReturnValue(new Boolean(retValue));
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract boolean _isExistSupplierByInter(Context ctx, String interOrgId, String comOrgId) throws BOSException, EASBizException;

    public SupplierCollection getSupplierCollectionByInter(Context ctx, String interOrgId, String comOrgId) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("3add7a3e-010b-1000-e000-0004c0a8121c"), new Object[]{ctx, interOrgId, comOrgId});
            invokeServiceBefore(svcCtx);
            SupplierCollection retValue = (SupplierCollection)_getSupplierCollectionByInter(ctx, interOrgId, comOrgId);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract SupplierCollection _getSupplierCollectionByInter(Context ctx, String interOrgId, String comOrgId) throws BOSException, EASBizException;

    public boolean checkInternalCompanyExist(Context ctx, BOSUuid id) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("a20f5aa8-010e-1000-e000-0001c0a812d9"), new Object[]{ctx, id});
            invokeServiceBefore(svcCtx);
            boolean retValue = (boolean)_checkInternalCompanyExist(ctx, id);
            svcCtx.setMethodReturnValue(new Boolean(retValue));
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract boolean _checkInternalCompanyExist(Context ctx, BOSUuid id) throws BOSException, EASBizException;

    public List isExistSupplierByInter(Context ctx, List ids) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("9d8617ee-010f-1000-e000-0006c0a8121c"), new Object[]{ctx, ids});
            invokeServiceBefore(svcCtx);
            List retValue = (List)_isExistSupplierByInter(ctx, ids);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract List _isExistSupplierByInter(Context ctx, List ids) throws BOSException, EASBizException;

    public boolean isExistInterSupplier(Context ctx, Map param) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("1d6d180f-0113-1000-e000-0025c0a8129f"), new Object[]{ctx, param});
            invokeServiceBefore(svcCtx);
            boolean retValue = (boolean)_isExistInterSupplier(ctx, param);
            svcCtx.setMethodReturnValue(new Boolean(retValue));
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract boolean _isExistInterSupplier(Context ctx, Map param) throws BOSException, EASBizException;

    public void createSupplierByTransfer(Context ctx, Map param) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("1d6d180f-0113-1000-e000-0027c0a8129f"), new Object[]{ctx, param});
            invokeServiceBefore(svcCtx);
            _createSupplierByTransfer(ctx, param);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract void _createSupplierByTransfer(Context ctx, Map param) throws BOSException, EASBizException;

    public SupplierCollection getInterSupplierCollection(Context ctx, String orgid, String cuid) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("22b1ea61-0113-1000-e000-0016c0a8129f"), new Object[]{ctx, orgid, cuid});
            invokeServiceBefore(svcCtx);
            SupplierCollection retValue = (SupplierCollection)_getInterSupplierCollection(ctx, orgid, cuid);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract SupplierCollection _getInterSupplierCollection(Context ctx, String orgid, String cuid) throws BOSException, EASBizException;

    public void batchAssign2(Context ctx, String cuid, String[] diddata, String[] cuiddata, HashSet assistData) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("299576bf-011a-1000-e000-0008c0a8125a"), new Object[]{ctx, cuid, diddata, cuiddata, assistData});
            invokeServiceBefore(svcCtx);
            _batchAssign2(ctx, cuid, diddata, cuiddata, assistData);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract void _batchAssign2(Context ctx, String cuid, String[] diddata, String[] cuiddata, HashSet assistData) throws BOSException, EASBizException;

    public void batchAssign2(Context ctx, String cuid, String sql, HashSet basedata, HashSet cuData, HashSet assistData) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("299576bf-011a-1000-e000-000fc0a8125a"), new Object[]{ctx, cuid, sql, basedata, cuData, assistData});
            invokeServiceBefore(svcCtx);
            _batchAssign2(ctx, cuid, sql, basedata, cuData, assistData);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract void _batchAssign2(Context ctx, String cuid, String sql, HashSet basedata, HashSet cuData, HashSet assistData) throws BOSException, EASBizException;

    public void batchAssignAssist(Context ctx, String cuid, String[] diddata, String[] cuiddata, HashSet assistData) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("2d8fded6-011a-1000-e000-0014c0a8125a"), new Object[]{ctx, cuid, diddata, cuiddata, assistData});
            invokeServiceBefore(svcCtx);
            _batchAssignAssist(ctx, cuid, diddata, cuiddata, assistData);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract void _batchAssignAssist(Context ctx, String cuid, String[] diddata, String[] cuiddata, HashSet assistData) throws BOSException, EASBizException;

    public void batchAssignAssist(Context ctx, String cuid, String sql, HashSet basedata, HashSet cuData, HashSet assistData) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("2d8fded6-011a-1000-e000-0015c0a8125a"), new Object[]{ctx, cuid, sql, basedata, cuData, assistData});
            invokeServiceBefore(svcCtx);
            _batchAssignAssist(ctx, cuid, sql, basedata, cuData, assistData);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract void _batchAssignAssist(Context ctx, String cuid, String sql, HashSet basedata, HashSet cuData, HashSet assistData) throws BOSException, EASBizException;

    public Map getEditUIInitData(Context ctx, String supplierId, CtrlUnitInfo curCtrlUnitInfo) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("acd42824-158a-40e4-8063-31f64a23bf2a"), new Object[]{ctx, supplierId, curCtrlUnitInfo});
            invokeServiceBefore(svcCtx);
            Map retValue = (Map)_getEditUIInitData(ctx, supplierId, curCtrlUnitInfo);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract Map _getEditUIInitData(Context ctx, String supplierId, CtrlUnitInfo curCtrlUnitInfo) throws BOSException, EASBizException;

    public void batchDelete(Context ctx, Set ids) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("bbaa9bc3-78e1-4916-af8a-7b46cbbcd497"), new Object[]{ctx, ids});
            invokeServiceBefore(svcCtx);
            _batchDelete(ctx, ids);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract void _batchDelete(Context ctx, Set ids) throws BOSException, EASBizException;

    public void batchUnAssignAssist(Context ctx, String cuId, String[] orgIds, String[] dataIds, HashSet assistDataSet) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("8b951f76-a362-4a50-aeea-445c7030f135"), new Object[]{ctx, cuId, orgIds, dataIds, assistDataSet});
            invokeServiceBefore(svcCtx);
            _batchUnAssignAssist(ctx, cuId, orgIds, dataIds, assistDataSet);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract void _batchUnAssignAssist(Context ctx, String cuId, String[] orgIds, String[] dataIds, HashSet assistDataSet) throws BOSException, EASBizException;

    public void batchUnAssignAssist(Context ctx, String cuId, String[] orgIds, String dataSql, String[] notInDataIds, HashSet assistDataSet) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("9118a90a-4dec-4d2f-91d5-fe577732e465"), new Object[]{ctx, cuId, orgIds, dataSql, notInDataIds, assistDataSet});
            invokeServiceBefore(svcCtx);
            _batchUnAssignAssist(ctx, cuId, orgIds, dataSql, notInDataIds, assistDataSet);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract void _batchUnAssignAssist(Context ctx, String cuId, String[] orgIds, String dataSql, String[] notInDataIds, HashSet assistDataSet) throws BOSException, EASBizException;

    public String readNewNumber(Context ctx, String cuId, SupplierInfo supplierInfo) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("c10f1b3b-3ed9-4e1c-989a-b91847bea2f1"), new Object[]{ctx, cuId, supplierInfo});
            invokeServiceBefore(svcCtx);
            String retValue = (String)_readNewNumber(ctx, cuId, supplierInfo);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract String _readNewNumber(Context ctx, String cuId, SupplierInfo supplierInfo) throws BOSException, EASBizException;

    public DataBaseDCollection getDataBaseDCollection (Context ctx) throws BOSException
    {
    	return (DataBaseDCollection)(getSupplierCollection(ctx).cast(DataBaseDCollection.class));
    }
    public DataBaseDCollection getDataBaseDCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (DataBaseDCollection)(getSupplierCollection(ctx, view).cast(DataBaseDCollection.class));
    }
    public DataBaseDCollection getDataBaseDCollection (Context ctx, String oql) throws BOSException
    {
    	return (DataBaseDCollection)(getSupplierCollection(ctx, oql).cast(DataBaseDCollection.class));
    }
    public DataBaseCollection getDataBaseCollection (Context ctx) throws BOSException
    {
    	return (DataBaseCollection)(getSupplierCollection(ctx).cast(DataBaseCollection.class));
    }
    public DataBaseCollection getDataBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (DataBaseCollection)(getSupplierCollection(ctx, view).cast(DataBaseCollection.class));
    }
    public DataBaseCollection getDataBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (DataBaseCollection)(getSupplierCollection(ctx, oql).cast(DataBaseCollection.class));
    }
    public ObjectBaseCollection getObjectBaseCollection (Context ctx) throws BOSException
    {
    	return (ObjectBaseCollection)(getSupplierCollection(ctx).cast(ObjectBaseCollection.class));
    }
    public ObjectBaseCollection getObjectBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (ObjectBaseCollection)(getSupplierCollection(ctx, view).cast(ObjectBaseCollection.class));
    }
    public ObjectBaseCollection getObjectBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (ObjectBaseCollection)(getSupplierCollection(ctx, oql).cast(ObjectBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx) throws BOSException
    {
    	return (CoreBaseCollection)(getSupplierCollection(ctx).cast(CoreBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (CoreBaseCollection)(getSupplierCollection(ctx, view).cast(CoreBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (CoreBaseCollection)(getSupplierCollection(ctx, oql).cast(CoreBaseCollection.class));
    }
}